package com.jbp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jbp.utils.PageUtils;
import com.jbp.model.RoomUserWheat;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author lucheng feng
 * @email jbp@gmail.com
 * @date 2020-06-18 21:26:42
 */
public interface RoomUserWheatService extends IService<RoomUserWheat> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 设置主持人
     * @param roomUserWheat
     */
    void presenter(RoomUserWheat roomUserWheat);

    List<Integer> getUserIds(@Param("roomId") Integer roomId);

    /**获取有人的房间*/
    List<RoomUserWheat> notEmptyRooms();

    List<Integer> allUserIds();
}

